Skip to content

fix!: expect crypto to be global everywhere (requires node@20+)#935

Merged
broofa merged 4 commits intomainfrom
unify_rng
Apr 19, 2026
Merged

fix!: expect crypto to be global everywhere (requires node@20+)#935
broofa merged 4 commits intomainfrom
unify_rng

Conversation

@broofa
Copy link
Copy Markdown
Member

@broofa broofa commented Apr 6, 2026

Now that crypto is globally defined everywhere (all browser environments and node@20+), we can clean up the feature detection logic we had around it.

  • Remove typeof crypto feature-detection
  • Remove rng-browser.ts
  • Remove native*.ts

Closes #891

@broofa broofa marked this pull request as ready for review April 6, 2026 16:47
@broofa broofa changed the title fix!: expect crypto to be global everywhere fix!: expect crypto to be global everywhere (requires node@20+) Apr 6, 2026
@broofa broofa merged commit f2c235f into main Apr 19, 2026
13 checks passed
@broofa broofa deleted the unify_rng branch April 19, 2026 13:01
@realityking
Copy link
Copy Markdown

Very cool. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[after node@18 is dropped] Combine rng.ts + rng-browser.ts

2 participants